package com.yzf.service;

import java.util.List;

import com.yzf.dao.IdeaCommentDao;
import com.yzf.entity.IdeaComment;

public class IdeaCommentService {
	
	IdeaCommentDao dao = new IdeaCommentDao();
	
	public void save(IdeaComment ideaComment){
		
		dao.save(ideaComment);
	}

	public List<IdeaComment> findByEidIid(String eid,String iid) {
		return dao.findByEidIid(eid, iid);
	}
	
	public void delete(String id){
		dao.delete(id);
		
	}

	public IdeaComment findById(String id) {
		
		return dao.findById(id);
	}
}	
